(function(f, define) {
    define(["./kendo.router"], f);
})(function() {

    (function() {



        (function($) {
            var Router = kendo.Router;
            var remoteView = kendo.Router.extend({
                init: function(options) {
                    var that = this;
                    Router.fn.init.call(that);
                },
                batch: function(selector, container) {
                    var that = this;
                    $(selector).each(function() {
                        var aTag = $(this);
                        var url = aTag.attr("href");
                        if (url) {
                            that.route(url, function() {
                                $(container).load(url);
                            });
                            aTag.on("click", function(e) {
                                that.navigate(url);
                                e.preventDefault();
                            });
                        }
                    });
                    return that;
                }
            });
            kendo.RemoteView = remoteView;
        })(window.kendo.jQuery);


    })();

    return window.kendo;

}, typeof define == 'function' && define.amd ? define : function(_, f) { f(); });